<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@ page import="com.bci.pwtz.mysql.model.Dydx"%>
<%@ page import="com.bci.pwtz.mysql.model.Dyxl"%>
<%@ page import="com.bci.pwtz.mysql.model.Kzsxsbzp"%>
<%@ page import="com.bci.pwtz.service.DydxService"%>
<%@ page import="com.bci.pwtz.service.impl.DydxServiceImpl"%>
<%@ page import="com.bci.pwtz.service.KzsxsbzpService"%>
<%@ page import="com.bci.pwtz.service.impl.KzsxsbzpServiceImpl"%>
<%@ page import="com.bci.pwtz.service.DyxlService"%>
<%@ page import="com.bci.pwtz.service.impl.DyxlServiceImpl"%>
<%@ page import="com.bci.pwtz.service.BusinessCommonService"%>
<%@ page import="com.bci.pwtz.service.impl.BusinessCommonServiceImpl"%>
<%@ page import="com.bci.pwtz.common.util.PwtzUtils"%>
<%@ page import="com.bci.pwtz.service.DygtService" %>
<%@ page import="com.bci.pwtz.service.impl.DygtServiceImpl" %>
<%@ page import="com.bci.pwtz.mysql.model.Dygt" %>
<%
	String deviceid = request.getParameter("deviceid");
	//deviceid="8c38b104-eeb1-4391-8860-9a2fbb72ca82";
	DydxService dydxService = (DydxServiceImpl)SpringUtil.getBean("dydxService");
	DyxlService dyxlService = (DyxlServiceImpl)SpringUtil.getBean("dyxlService");
	BusinessCommonService businessCommonService = (BusinessCommonServiceImpl)SpringUtil.getBean("businessCommonService");
	Dydx dydx=dydxService.load(deviceid);
	DygtService dtService=(DygtService)SpringUtil.getBean("dygtService");
	Dyxl line=dyxlService.load(dydx.getLinecode());
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-系统主页</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<%-- <script type="text/javascript" src="<%=basePath %>user/d/js/dydxlist.js"></script> --%>
</head>
<script type="text/javascript">
</script>
<body bgcolor="white">
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<div class="pwsj_cont_right_box" scroll="no">
		<!-- 低压导线_begin -->
		<div class="pwsj_right_byq" scroll="no">
		<div class="pwsj_right_byq_position">
			<a class="position" href="<%=basePath %>user/m/index.jsp">配网数据</a>&gt;
			<%if(line.getDevicetype()==1){
				%>
				<a class="position" href="<%=basePath %>user/d/pdbyqlist.jsp">配电变压器</a>&gt;
			<%}else if(line.getDevicetype()==2){
				%>
				<a class="position" href="<%=basePath %>user/d/zsbyqlist.jsp">柱上变压器</a>&gt;
			<%}%>
			<a class="position" href="<%=basePath %>user/d/dyxllist.jsp?deviceid=<%=line.getTransformercode()%>&devicetype=<%=line.getDevicetype()%>">低压线路</a>&gt;
			<a class="position">低压导线详情</a>
			<a class="right" href="<%=basePath %>user/d/dydxlist.jsp?deviceid=<%=dydx.getLinecode()%>&t=<%=System.currentTimeMillis() %>">返回</a>
		</div>
			<!-- 运行参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">运行参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>设备名称：</span><%=PwtzUtils.validateNull(dydx.getDevicename())%></li>
						<li class="argument_cont_li"><span>设备编号：</span><%=PwtzUtils.validateNull(dydx.getDevicenumber())%></li>
						<%
						String lineName = line.getDevicename();
						%>
						<li class="argument_cont_li"><span>所属线路名称：</span><%=lineName%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<%
						String stn="";
						String etn = "";
						if(dydx.getStarttowercode()!=null && dydx.getEndtowercode()!=null){
						    Dygt sdt=dtService.load(dydx.getStarttowercode());
						    Dygt edt=dtService.load(dydx.getEndtowercode());
						    if(sdt!=null){
						        stn =sdt.getDevicename();
						    }
							if(edt!=null){
							    etn=edt.getDevicename();
							}
						}
						%>
						<li class="argument_cont_li"><span>起始设备：</span><%=stn %></li>
						<li class="argument_cont_li"><span>终止杆塔：</span><%=etn %></li>
						<li class="argument_cont_li"><span>所属地市：</span><%=PwtzUtils.validateNull(dydx.getLocalcity())%></li>	
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>运维单位：</span><%=PwtzUtils.validateNull(dydx.getOperationunit())%></li>	
						<li class="argument_cont_li"><span>维护班组：</span><%=PwtzUtils.validateNull(dydx.getMaintenanceteam())%></li>
						<li class="argument_cont_li"><span>投运日期：</span><%=PwtzUtils.validateNull(dydx.getCommissioningdate())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>设备状态：</span><%=PwtzUtils.validateNull(dydx.getEquipmentstate())%></li>
						<li class="argument_cont_li"><span>运行状态：</span><%=PwtzUtils.validateNull(dydx.getOperationstate())%></li>
						<div class="clear"></div>
					</ul>
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 运行参数_end -->

			<!-- 物理参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">物理参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>型号：</span><%=PwtzUtils.validateNull(dydx.getModel())%></li>
						<li class="argument_cont_li"><span>生产厂家：</span><%=PwtzUtils.validateNull(dydx.getProductionfactory())%></li>
						<li class="argument_cont_li"><span>导线规格：</span><%=PwtzUtils.validateNull(dydx.getWirespecification())%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>导线长度：</span><%=PwtzUtils.validateNull(dydx.getWirelength())%></li>
						<li class="argument_cont_li"><span>安全系数：</span><%=PwtzUtils.validateNull(dydx.getSafetyfactor())%></li>
						<div class="clear"></div>
					</ul>
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 物理参数_end -->
			<!-- 管理信息_begin -->
			<div class="argument_box">
				<div class="argument_title">
					<p class="title">管理信息</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
					<%
						String cUserNmae = "";
						CompanyUser cuser = userService.load(dydx.getCreateid());
						if(cuser!=null){
						    cUserNmae = cuser.getLoginName();
						}
						String oUserNmae = "";
						CompanyUser ouser = userService.load(dydx.getLastoperatorid());
						if(cuser!=null){
						    oUserNmae = ouser.getLoginName();
						}
					%>
						<li class="argument_cont_li"><span>创建人：</span><%=PwtzUtils.validateNull(cUserNmae)%></li>
						<li class="argument_cont_li"><span>创建时间：</span><%=PwtzUtils.date2String(dydx.getCreatedate(),"yyyy-MM-dd HH:mm:ss")%></li>
						<li class="argument_cont_li"><span>最后修改时间：</span><%=PwtzUtils.date2String(dydx.getLastmodifiedtime(),"yyyy-MM-dd HH:mm:ss")%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>最后操作人：</span><%=PwtzUtils.validateNull(oUserNmae)%></li>
						<div class="clear"></div>
					</ul>
				</div>
			</div>
			<!-- 管理信息_end -->
			
			<%-- <!-- 扩展属性_begin -->
			<div class="argument_box">
				<!-- 设备图片_begin -->
				<div class="kzsx_big_img" style="display:none;">
					<img src="" alt="再次点击关闭图片" />					
				</div>
				<!-- <img class="kzsx_big_img_close" src="images/add_facility_close.png" alt="" /> -->
				<!-- 设备图片_end -->

				<!-- 标题-begin -->
				<div class="argument_title">
					<p class="title">扩展属性</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 标题-end -->
				<!-- 扩展属性内容_begin -->
				<div class="argument_cont_box" style="border-bottom:1px solid #dedede;">
					<!-- 扩展属性左侧_begin -->
					<%if(kzsxsbzpList!=null && kzsxsbzpList.size()>0){ %>
					<div class="kzsx_cont_leftbox">
						<div class="add_pic">
							设备照片信息：
							<!-- <input type="button" class="add_pic_btn" value="添加照片" onclick="document.getElementById('add_pic_filebtn').click();" />
							<input type="file" id="add_pic_filebtn" style="display: none" /> -->
						</div>
						<!-- 图片动画_begin -->
						<div class="img_flash_box">
							<div class="left_btn"><img src="<%=basePath %>user/images/btn_left.png" /></div>
							<!-- 图片展示_begin -->
							<div class="center">
								<div class="inner_box">
									<%
									
									    for(Kzsxsbzp kzsxsbzp:kzsxsbzpList){
									%>
									<div class="img_p">										
										<img class="small_pic" src="<%=basePath+kzsxsbzp.getPhotoname() %>" alt="" />
										<p>设备文字1</p>
									</div>
									<%
										} 
									%>
									<div class="clear"></div>
								</div>
							</div>
							<!-- 图片展示_begin -->
							<div class="right_btn"><img src="<%=basePath %>user/images/btn_right.png"/></div>
							<div class="clear"></div><!-- 清除左右浮动 -->
						</div>
						<!-- 图片动画_end -->
						<!-- <div class="ts">温馨提示：单击缩略图即可放大，再次单击关闭放映。</div> -->
					</div>
					<%
						} 
					%>
					<!-- 扩展属性左侧_end -->

					<!-- 扩展属性右侧_begin -->
					<div class="kzsx_cont_rightbox">
						<div class="right_title">
							设备空间信息：
							<p><span>经度：</span><%=PwtzUtils.validateNull(dydx.getLongitude())%></p>
							<p><span>纬度：</span><%=PwtzUtils.validateNull(dydx.getLatitude())%></p>
							<p><span>高度：</span><%=PwtzUtils.validateNull(dydx.getAltitude())%></p>
						</div>
					</div>
					<!-- 扩展属性右侧_end -->
					<div class="clear"></div>
				</div>
				<!-- 扩展属性内容_end -->
			</div>
			<!-- 扩展属性_end --> --%>
		</div>	
		<!-- 配电变压箱_end -->		
	</div>
	<!-- 右侧内容_end -->
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>